FortiGate Service Port Config Generator
How to use this tool:
- Specify a service name prefix (optional)
- Enter TCP ports/ranges in the TCP Ports box (one per line or comma-separated)
- Enter UDP ports/ranges in the TCP Ports box (one per line or comma-separated)
- Click "Generate CLI Commands"
- Copy the output and paste into your FortiGate CLI
Examples:
TCP: 80, 443, 8080, 1000-2000
UDP: 53, 123, 500-510
Note: Accepts port numbers or service names (e.g., "https" or "443")
Enter ports in any format (e.g., "80", "tcp-8080", "udp/53", "1000-2000") - the tool will automatically extract the port numbers.
Preview Table
Protocol |
Port/Range |
Service Name |
CLI Command |